package com.gxa.modules.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Data
@TableName("crm_customer")
public class MyCustomerDTO implements Serializable {
    /**
     * 客户Id
     */
    @Id
    @TableId(value = "customer_id", type = IdType.AUTO)
    private Integer customerId;

    /**
     * 联系人名字
     */
    @TableField("contact_name" )
    private String contactName;

    /**
     * 商品Id
     */
    @TableField("goods_id" )
    private Integer goodsId;

    /**
     * 业务员ID
     */
    @TableField("employee_id" )
    private Integer employeeId;

    /**
     * 客户名称
     */
    @TableField("customer_name" )
    private String customerName;

    /**
     * 职位
     */
    @TableField("customer_position" )
    private String customerPosition;

    /**
     * 手机号码
     */
    @TableField("customer_phone" )
    private Long customerPhone;

    /**
     * 微信号（含字母数字字符
     */
    @TableField("customer_wechat" )
    private String customerWechat;

    /**
     * QQ
     */
    @TableField("customer_qq" )
    private Long customerQq;

    /**
     * 电子邮箱
     */
    @TableField("customer_emali" )
    private String customerEmali;

    /**
     * 生日
     */
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss",timezone="GMT+8")
    @TableField("customer_birthday" )
    private Date customerBirthday;

    /**
     * 所在地区
     */
    @TableField("customer_area" )
    private String customerArea;

    /**
     * 详细地址
     */
    @TableField("customer_address" )
    private String customerAddress;

    /**
     * 邮编
     */
    @TableField("customer_zip_code" )
    private Long customerZipCode;

    /**
     * 客户类型
     */
    @TableField("customer_type" )
    private String customerType;

    /**
     * 客户级别
     */
    @TableField("customer_level" )
    private Long customerLevel;

    /**
     * 所属行业
     */
    @TableField("customer_trade" )
    private String customerTrade;

    /**
     * 录入时间
     */
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss",timezone="GMT+8")
    @TableField("customer_entry_time" )
    private Date customerEntryTime;

    /**
     * 备注
     */
    @TableField("customer_remarks" )
    private String customerRemarks;

    /**
     * 客户来源
     */
    @TableField("customer_source" )
    private String customerSource;

    /**
     * 最后更新时间
     */
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss",timezone="GMT+8")
    @TableField("customer_last_update" )
    private Date customerLastUpdate;

    /**
     * 是否为公海客户，1为客户，0为公海
     */
    @TableField("high_seas_customers" )
    private Long highSeasCustomers;

    /**
     * 1为未被删除，0为已删除，假删除状态
     */
    @TableField("delete_state" )
    private Long deleteState;

    /**
     * 删除原因
     */
    @TableField("delete_reason" )
    private String deleteReason;

    /**
     * 删除日期
     */
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss",timezone="GMT+8")
    @TableField("delete_date" )
    private Date deleteDate;

    /**
     * 合同总金额
     */
    @TableField("total_money" )
    private BigDecimal totalMoney;

    /**
     * 性别
     */
    @TableField("sex" )
    private String sex;
}
